<%@ page language="java" contentType="text/html; charset=UTF-8"
	pageEncoding="UTF-8"%>
<%@ include file="../../../common/taglib.jsp"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
	<head>
		<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
		<sfa:mainTitle></sfa:mainTitle>
		<%@ include file="../../../common/meta.jsp"%>
		<link rel="stylesheet" href="${path }/css/jquery.autocomplete.css"
			type="text/css"></link>
		<script type="text/javascript"
			src="${path }/script/jquery.autocomplete.js">
</script>
		<script type="text/javascript">
function shownoteinfo(obj1) {
	var dialog = art.dialog( {
		id : obj1,
		title : '保单信息'
	});
	$.ajax( {
		url : '${path}/business/cnc/index/noteinfo?policyno=' + obj1,
		success : function(data) {
			dialog.content(data);
		},
		cache : false
	});
}
</script>
		<script type="text/javascript">
$(document).ready(function() {
	// 供应商
		var requestUrl = "${path}/common/index/getprovider";
		$.ajax( {
			type : "post",//默认为get   
			dataType : "json",
			url : requestUrl,
			success : function(providerList) {
				$("#pvdn").autocomplete(providerList, {
					minChars : 0,
					max : 200,
					width : 200,
					matchContains : "word",
					autoFill : true,
					formatItem : function(row, i, max) {
						return row.providercode + ":" + row.providerabbr;
					},
					formatMatch : function(row, i, max) {
						return row.providercode + ":" + row.providerabbr;
					},
					formatResult : function(row) {
						return row.providercode + ":" + row.providerabbr;
					}
				});
			}
		});
	});

$(function() {
	fixTable.FixTable("mytable");
	$("#fullScreen").click(function() {
		fullScreen.FullScreen("mylist");
	});
})
</script>
	</head>
	<body id="master">
		<sfa:mainHeader></sfa:mainHeader>
		<form action="${path}/business/cnc/index/query" name="form1"
			id="form1" method="post">
			<div class="webpart3 contentarea">
				<div class="webpart-head">
					<div class="webpart-head-item">
						照会查询
						<div class="tools-btn">
							<a href="####" id="fullScreen"><span> <img
										src="${path}/statics/images/qp.gif"
										style="margin-right: 4px; margin-bottom: -3px;" />全屏</span> </a>
						</div>
					</div>
				</div>
				<div class="webpart-main">
					<div class="webpart-main-item" style="padding-top: 12px;">
						<div class="search">
							<table width="100%" border="0" cellspacing="0" cellpadding="10"
								class="table_form">
								<tbody>
									<tr>
										<td align="right">
											供应商：
										</td>
										<td align="left">
											<input type="text" name="pvdn" id="pvdn" size="17"
												width="200" value="${pvdn}"></input>
										</td>
										<td align="right">
											投保单号：
										</td>
										<td>
											<input name="appno" type="text" size="17" value="${appno}" />
										</td>
										<td align="right">
											照会开始日期：
										</td>
										<td align="left">
											<input name="sdate" value="${sdate}" id="sdate" type="text"
												size="17"
												onclick="WdatePicker({dateFmt:'yyyy-MM-dd',maxDate:'#F{$dp.$D(\'edate\',{d:0});}'})" />
										</td>

									</tr>
									<tr>
										<td align="right">
											保单号：
										</td>
										<td align="left">
											<input type="text" name="plyno" size="17" id="plyno"
												value="${plyno}" />
										</td>
										<td align="right">
											投保人姓名：
										</td>
										<td>
											<input name="cname" type="text" value="" size="17" />
										</td>
										<td align="right">
											照会结束日期：
										</td>
										<td align="left">
											<input value="${edate}" name="edate" id="edate" type="text"
												size="17"
												onclick="WdatePicker({dateFmt:'yyyy-MM-dd',minDate:'#F{$dp.$D(\'sdate\',{d:0});}'})" />
										</td>
									</tr>
									<tr>
										<td align="right">
											照会状态：
										</td>
										<td align="left">
											<sfa:dic showType="select" kindNo="NOTESTATUS" def="ALL:全部"
												attr="class='input-txt'" name="notestatus" id="notestatus"
												code="${notestatus}">
											</sfa:dic>
										</td>
										<td></td>
										<td align="center" colspan="3">
											<input type="submit" value="查 询" class="linkbtn2" />
										</td>
									</tr>
								</tbody>
							</table>
						</div>
						<!-- 查詢列表 -->
						<div id="mylist" style="height: 365px;" class="dlist">
							<table id="mytable" cellpadding="0" cellspacing="0"
								class="dg_borderstyle  trStyleTable"
								style="margin-top: 0px; text-align: center;">
								<tr>
									<th name="fixcol"><span>序号</span></th>
									<th>
										<span>照会状态</span>
									</th>
									<th>
										<span>供应商名称</span>
									</th>
									<th>
										<span>机构名称</span>
									</th>
									<th>
										<span>保单号码</span>
									</th>
									<th>
										<span>承保日期</span>
									</th>
									<th>
										<span>生效日期</span>
									</th>
									<th>
										<span>代理人</span>
									</th>
									<th>
										<span>查看明细</span>
									</th>
								</tr>
								<c:forEach items="${pagination.resultList}" var="list"									
									varStatus="ind">
									<tr id="${list.contractnoteId}">
										<td>
											${(pagination.page-1)*10+(ind.index+1)}
										</td>
										<td>
											${list.NOTESTATUS}
										</td>
										<td>
											${list.providerBBR}
										</td>
										<td>
											${list.branchName}
										</td>
										<td>
											${list.contractnoNote}
										</td>
										<td>
											${list.approveDate}
										</td>
										<td>
											${list.effectiveDate}
										</td>
										<td>
											${list.agentName}
										</td>

										<td>
											<a href="#" onclick="shownoteinfo('${list.CONTRACTNONOTE}')">查看详情</a>
										</td>
									</tr>
								</c:forEach>
							</table>
						</div>
						<c:if test="${not empty pagination.multiPage}">
							<div class="dg_pagerstyle">
								<div class="pageinfo">
									第${pagination.page }页 | 共${pagination.totalPages
									}页/${pagination.totalRows }条记录
								</div>
								<div class="pagebtn">
									${pagination.multiPage}
								</div>
							</div>
						</c:if>
					</div>
				</div>
				<div class="webpart-foot">
					<div class="webpart-foot-item">
					</div>
				</div>
			</div>
		</form>
		<sfa:mainFooter></sfa:mainFooter>
	</body>
</html>
